package com.ruoyi.liangshi.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.liangshi.domain.GdArchItemClass;
import com.ruoyi.liangshi.domain.GdArchItemUnit;
import com.ruoyi.liangshi.mapper.GdArchItemClassMapper;
import com.ruoyi.liangshi.mapper.GdArchItemUnitMapper;
import com.ruoyi.liangshi.service.IGdArchItemUnitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-11-18
 */
@Service
public class GdArchItemUnitServiceImpl  extends ServiceImpl<GdArchItemUnitMapper, GdArchItemUnit>  implements IGdArchItemUnitService
{
    @Autowired
    private GdArchItemUnitMapper gdArchItemUnitMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public GdArchItemUnit selectGdArchItemUnitById(Long id)
    {
        return gdArchItemUnitMapper.selectGdArchItemUnitById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param gdArchItemUnit 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<GdArchItemUnit> selectGdArchItemUnitList(GdArchItemUnit gdArchItemUnit)
    {
        return gdArchItemUnitMapper.selectGdArchItemUnitList(gdArchItemUnit);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param gdArchItemUnit 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertGdArchItemUnit(GdArchItemUnit gdArchItemUnit)
    {
        return gdArchItemUnitMapper.insertGdArchItemUnit(gdArchItemUnit);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param gdArchItemUnit 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateGdArchItemUnit(GdArchItemUnit gdArchItemUnit)
    {
        return gdArchItemUnitMapper.updateGdArchItemUnit(gdArchItemUnit);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteGdArchItemUnitByIds(Long[] ids)
    {
        return gdArchItemUnitMapper.deleteGdArchItemUnitByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteGdArchItemUnitById(Long id)
    {
        return gdArchItemUnitMapper.deleteGdArchItemUnitById(id);
    }
}
